package com.filldream.sun.bean.express;

import com.filldream.sun.core.JsonUtil;

import java.util.List;

/**
 * 聚合快递-实体类
 * @author RickSun
 * 2019-10-13
 */
public class JuHeExpress {

    /**
     * 快递单号
     */
    private String no;

    /**
     * 快递公司名称
     */
    private String company;

    /**
     * 快递公司编号
     */
    private String com;

    /**
     * 1表示此快递单的物流信息不会发生变化，此时您可缓存下来；0表示有变化的可能性
     */
    private String status;

    /**
     * 详细的状态信息，可能为null，仅作参考
     *         PENDING 待查询
     *         NO_RECORD 无记录
     *         ERROR 查询异常
     *         IN_TRANSIT 运输中
     *         DELIVERING 派送中
     *         SIGNED 已签收
     *         REJECTED 拒签
     *         PROBLEM 疑难件
     *         INVALID 无效件
     *         TIMEOUT 超时件
     *         FAILED 派送失败
     *         SEND_BACK 退回
     *         TAKING 揽件
     */
    private String statusDetail;


    /**
     * 备注
     */
    private String  reason;

    /**
     * 0表示查询正常，其他表示查询不到物流信息或发生了其他错误
     */
    private Integer errorCode;

    /**
     * 物流列表
     */
    private List<JuHeExpressList> expressList;


    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getCom() {
        return com;
    }

    public void setCom(String com) {
        this.com = com;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatusDetail() {
        return statusDetail;
    }

    public void setStatusDetail(String statusDetail) {
        this.statusDetail = statusDetail;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public List<JuHeExpressList> getExpressList() {
        return expressList;
    }

    public void setExpressList(List<JuHeExpressList> expressList) {
        this.expressList = expressList;
    }

    @Override
    public String toString() {
        return JsonUtil.toJson(this);
    }
}
